package patterns.command;

/**
 * Created by lenovo on 2016/11/30 0030.
 * 请求类，发送一些请求指令。
 */
public class Stock {
    private String name = "ABC";
    private int quantity = 10;

    public void buy(){
        System.out.printf("请求，name = %s Quantity = %s 买东西",name,quantity);
        System.out.println();
    }
    public void sell(){
        System.out.printf("请求，name = %s Quantity = %s 卖东西",name,quantity);
        System.out.println();
    }
}
